/*
 * @Descripttion: 
 * @version: 
 * @Author: mmzhang
 * @Date: 2021-06-28 16:08:08
 * @LastEditTime: 2022-06-09 11:32:36
 */

let modules = import.meta.glob('../views/**/*.vue')

let routerName = {
  modules: name => modules[`../views/${name}.vue`],
  //后台管理
  backStage: name => modules[`../views/backStage/${name}.vue`],
  // 业务报表
  reportCenter: name => modules[`../views/reportCenter/${name}.vue`],
  // 后台 流程审批
  flowApproval: name => modules[`../views/flowApproval/${name}.vue`],
  // 后台 佣金管理
  commission: name => modules[`../views/commission/${name}.vue`],
  // 后台 线索管理
  clueManage: name => modules[`../views/clueManage/${name}.vue`],
  // 后台 客户管理
  customerManage: name => modules[`../views/customerManage/${name}.vue`],
  // 后台 营销管理
  marketing: name => modules[`../views/marketing/${name}.vue`],
  //案场首页
  buildingHome: name => modules[`../views/casemanagement/buildingHome/${name}.vue`],

  // 客户管理
  customerManagementCenter: name => modules[`../views/casemanagement/allCustomersManagement/${name}.vue`],
  // 营销管理
  marketingCenter: name => modules[`../views/casemanagement/marketingCenter/${name}.vue`],

  //案场管理
  buildingManagement: name => modules[`../views/casemanagement/buildingManagement/${name}.vue`],
  // 销售管理
  salesManagement: name => modules[`../views/casemanagement/salesManagement/${name}.vue`],
  //楼盘建模
  buildingModeling: name => modules[`../views/casemanagement/buildingModeling/${name}.vue`],
  //回款管理
  paymentManagement: name => modules[`../views/casemanagement/paymentManagement/${name}.vue`],
  // 案场 流程审批
  caseFlowApproval: name => modules[ `../views/casemanagement/flowApproval/${name}.vue`],
  // 案场 报表统计
  caseReport: name => modules[`../views/casemanagement/report/${name}.vue`],
  // 案场 佣金管理
  caseCommission: name => modules[ `../views/casemanagement/commission/${name}.vue`],
  // 案场 奖金管理
  bonus: name => modules[`../views/casemanagement/bonus/${name}.vue`],
}

export default routerName